﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.ComponentModel;
using System.Collections.ObjectModel;

namespace XBS.Model
{
    public class Story : INotifyPropertyChanged
    {
        private List<Para> listParas;
        public List<Para> ListParas
        {
            get
            {
                return listParas;
            }
            set
            {
                this.listParas = value;
                RaisePropertyChanged("ListParas");
            }
        }

        private string index;
        public string Index
        {
            get
            {
                return index;
            }
            set
            {
                this.index = value;
                RaisePropertyChanged("Index");
            }
        }

        private string name;
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                this.name = value;
                RaisePropertyChanged("Name");
            }
        }

        private string imgSrc;
        public string ImgSrc
        {
            get
            {
                return imgSrc;
            }
            set
            {
                this.imgSrc = value;
                RaisePropertyChanged("ImgSrc");
            }
        }

        public Story()
        {
            listParas = new List<Para>();
        }

        public event PropertyChangedEventHandler PropertyChanged;
        public void RaisePropertyChanged(String propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

    }
}
